idf_component_register(SRCS "my_smartconfig.c" "ota.c" "BedSpread.c" "CRC16.c" "get_time.c" "my_nvs.c" "wifi.c" "key.c" "delay.c" "led.c" "my_uart.c" "my_wss.c" "cJSON.c"
                    INCLUDE_DIRS "." 
                    REQUIRES "driver" "esp_wifi" "esp_event" "nvs_flash" "lwip" "wpa_supplicant" "esp_common" "mqtt" "spi_flash" "mbedtls" "esp_hw_support" "app_update" "esp_http_client" "esp_https_ota" "esp_app_format")

target_link_libraries(${COMPONENT_LIB} PRIVATE 
"${CMAKE_CURRENT_LIST_DIR}/libs/libLetsEncryptDecrypt.a"
)

# set(LIBS LetsEncryptDecrypt) 
# add_library(${LIBS} STATIC IMPORTED) 
# set_property(TARGET ${LIBS} PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/libs${LIBS}.a) 
# target_link_libraries(${COMPONENT_LIB} INTERFACE ${LIBS})
# set_property(TARGET ${LIBS} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${COMPONENT_LIB})

